function tocart() {
    $.ajax({
        url:"/cart/tocart",
        type:"post",
        data:"",
        datatype:"text",
        async:false,
        success:function () {
            window.location.href = "/cart/tocart";
        },
        error:function () {
            window.location.href="/cart/tocart";
        }
    })
}
//进商城
function toShopping() {
    $.ajax({
        url:"/mall/shopping/0",
        type:"post",
        data:"",
        datatype:"text",
        async:false,
        success:function () {
            window.location.href="/mall/shopping/0";
        },
        error:function () {
            window.location.href="/mall/shopping/0";
        }
    })
}